# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from .Repository import Repository
from .SayHi import SayHello


class GreetingService:
    def __init__(self, say_hello: SayHello):
        self.say_hello = say_hello

    def handle(self, repository: Repository):
        repository.user.name = "陈建华"
        return repository.user
